import axios from 'axios'

const checkAuth = async id => {
	try {
		const response = await axios.post(
			process.env.url_server + '/api/user/auth',
			{
				id: id,
			}
		)
		return response.data
	} catch (err) {
		alert(err)
	}
}

export default {
	checkAuth,
}
